package com.vm.osm.business.dto.omp.type_dicts;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * 字典信息
 *
 * @author Xuerong Xue
 */
@ApiModel
public class TypeDict implements Serializable {
    @ApiModelProperty("字典Id")
    public String id;
    @ApiModelProperty("字典父Id")
    public String parent_id;
    @ApiModelProperty(value = "字典类型",
            notes = "1：通用设备类型、2：配件类型、3：易耗品类型、4：行业类型、5：事件优先级、6：评价等级、7：项目进展设置")
    public Byte type;
    @ApiModelProperty("字典名称")
    public String name;
    @ApiModelProperty("字典编号")
    public String code;
    @ApiModelProperty("字典内容")
    public String content;
    @ApiModelProperty("字典排序")
    public String orders;

    /**
     * 字典类型
     *
     * @author Xuerong Xue
     */
    public static final class Type {
        public static final byte GENERIC_EQUIPMENT_TYPE = (byte) 1;  // 通用设备类型
        public static final byte ACCESSORY_TYPE = (byte) 2;  // 配件类型
        public static final byte CONSUMABLE_TYPE = (byte) 3; // 易耗品类型
        public static final byte INDUSTRY_TYPE = (byte) 4; // 行业类型
        public static final byte EVENT_PRIORITY = (byte) 5; // 事件优先级
        public static final byte EVALUATION_GRADE = (byte) 6; // 评价等级
        public static final byte PROJECT_PROGRESS = (byte) 7; // 项目进展
    }
}
